﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.Specialist>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ApproveSpecialist
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ApproveSpecialist</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

       
         <!--   
            <div class="editor-label">
                <%: Html.LabelFor(model => model.UserID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.UserID) %>
                <%: Html.ValidationMessageFor(model => model.UserID) %>
            </div>-->
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Title) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Title) %>
                <%: Html.ValidationMessageFor(model => model.Title) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Education) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Education) %>
                <%: Html.ValidationMessageFor(model => model.Education) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Workplace) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Workplace) %>
                <%: Html.ValidationMessageFor(model => model.Workplace) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Phone) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Phone) %>
                <%: Html.ValidationMessageFor(model => model.Phone) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsApproved) %>
            </div>
            <div class="editor-field">
                <select id="IsApproved" name="IsApproved">
                    <option value="0" <%= Model.IsApproved == false  %>>Hafna</option>
                    <option value="1" <%= Model.IsApproved == true %>>Samþykkja</option>
            
                </select>
            </div>
            
            <p>
                <input type="submit" value="Samþykkja/Hafna sérfræðing" />
            </p>
     

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

